﻿<%@ Page Language="C#" MasterPageFile="~/ProductManager/ProductManage.Master" AutoEventWireup="true" CodeFile="BrandManage.aspx.cs" Inherits="GoShopping.Web.ProductManager.TypeAttribute" Title="无标题页" %>
<%@ Register assembly="GoShopping.Components" namespace="BaseText" tagprefix="cc1" %>
<%@ Register assembly="ExtensionGridView" namespace="ExtensionControls" tagprefix="cc2" %>
<%@ MasterType VirtualPath="ProductManage.Master" %> 
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <table class="style1">
        <tr>
            <td style="width: 94px">
                <asp:Label ID="Label1" runat="server" Text="品牌名"></asp:Label>
            </td>
            <td>
                <cc1:ZLTextBox ID="zlTxtBrandName" runat="server"></cc1:ZLTextBox>
                <asp:Button ID="btnAdd" runat="server" Text="添加" onclick="btnSave_Click" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="zlTxtBrandName" ErrorMessage="RequiredFieldValidator">不能为空!</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 94px">
                <asp:Label ID="Label2" runat="server" Text="品牌列表"></asp:Label>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:GridView ID="extGVBrand" runat="server" 
                    AutoGenerateColumns="False" 
                    PagerText="当前第{0}页,共{1}页{2}条记录" RecordCount="-1" AllowPaging="True" 
                    onpageindexchanging="extGVBrand_PageIndexChanging" Width="400px" 
                    EmptyDataText="No brand!">
                    <Columns>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:CheckBox ID="cbAll" runat="server" 
                                    oncheckedchanged="cbAll_CheckedChanged" AutoPostBack="True" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:CheckBox ID="cbSingle" runat="server" />
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" />
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="ID">
                            <HeaderTemplate>
                                <asp:Label ID="Label" runat="server" Text="ID"></asp:Label>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lblID" runat="server" Text='<%# Eval("ID") %>'></asp:Label>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="品牌名">
                            <HeaderTemplate>
                                <asp:Label ID="Label2" runat="server" Text="品牌名"></asp:Label>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lblBrand" runat="server" Text='<%# Eval("Name") %>'></asp:Label>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:Button ID="btnDel" runat="server" Text="删除" onclick="btnDel_Click" 
                    CausesValidation="False" />
            </td>
        </tr>
    </table>
    </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
